import request from "../request/index";

const baseUrl = process.env.VUE_APP_BASE_URL;

export function GetUserList(roleId) {
  return request.get(`${baseUrl}/RoleUser/GetUserList?roleId=${roleId}`);
}

export function UpdateRoleUser(roleId, userIds) {
  return request.post(`${baseUrl}/RoleUser/UpdateRoleUser`, {
    roleId: roleId,
    userIds: userIds,
  });
}
